﻿using System;
using System.ComponentModel.Composition;
using Coproject.ViewModels.Interfaces;

namespace Coproject.Framework
{
	[MetadataAttribute]
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
	public class ExportModuleAttribute : ExportAttribute, IModuleMetadata
	{
		public int Order { get; private set; }
		public string Title { get; private set; }

		public ExportModuleAttribute(int order, string title)
			: base(typeof(IModule))
		{
			Order = order;
			Title = title;
		}
	}
}
